package cn.stylefeng.guns.modular.system.service;

import java.util.List;

import com.baomidou.mybatisplus.extension.service.IService;

import cn.stylefeng.guns.base.pojo.page.LayuiPageInfo;
import cn.stylefeng.guns.modular.system.entity.BasicDeliver;
import cn.stylefeng.guns.modular.system.model.params.BasicDeliverParam;
import cn.stylefeng.guns.modular.system.model.result.BasicDeliverResult;

/**
 * <p>
 * 交付管理表 服务类
 * </p>
 *
 * @author zhucx
 * @since 2019-06-25
 */
public interface BasicDeliverService extends IService<BasicDeliver> {

    /**
     * 新增
     *
     * @author zhucx
     * @Date 2019-06-25
     */
    void add(BasicDeliverParam param);

    /**
     * 删除
     *
     * @author zhucx
     * @Date 2019-06-25
     */
    void delete(BasicDeliverParam param);

    /**
     * 更新
     *
     * @author zhucx
     * @Date 2019-06-25
     */
    void update(BasicDeliverParam param);

    /**
     * 查询单条数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-06-25
     */
    BasicDeliverResult findBySpec(BasicDeliverParam param);

    /**
     * 查询列表，Specification模式
     *
     * @author zhucx
     * @Date 2019-06-25
     */
    List<BasicDeliverResult> findListBySpec(BasicDeliverParam param);

    /**
     * 查询分页数据，Specification模式
     *
     * @author zhucx
     * @Date 2019-06-25
     */
     LayuiPageInfo findPageBySpec(BasicDeliverParam param);

     /**
      * 通过交付客户名称查询
      * @param customername
      * @return
      */
     BasicDeliverParam getBycustomername(String customername);

}
